package com.zt.java.concurrency.synchronize;

import org.openjdk.jol.info.ClassLayout;

/**
 * jvm开始偏向锁
 * 观察markword的值
 */
public class JOL2 {

    public static void main(String[] args) throws Exception{

        Thread.sleep(5000);//等待jvm开启偏向锁
        Object o = new Object();
        System.out.println(ClassLayout.parseInstance(o).toPrintable());
    }
}
